<?php $i=0; foreach($posts as $post): ?>
	
	<?php if(sizeof($posts) == ($i+1)) echo '<a name="lastpost"></a>'; ?>
	
	<div class="bubble<?php if ($i % 2 == 0) echo ' odd'; else echo ' even"';?>">

		<blockquote>
			<p><strong><?=$post->subject;?></strong></p>
			<p><?=auto_link(bbcode($post->message), 'both', TRUE);?></p>
		</blockquote>

		<cite>
			<strong><?=$post->author;?></strong> <small>[<?=$post->posted;?>]</small>
		</cite>
		
	</div>
<?php $i++; endforeach; ?>
